/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Classificadores;

import Interfaces.VerifyStrength;

/**
 *
 * @author Tainá, Ana Luiza e Amanda
 */
public class Verify02 implements VerifyStrength{
     @Override
    public String checkStrength(int total){
         String complexity = "Very Weak";
         if (total > 100)
             total = 100;  
         else if (total < 0)
             total = 0;
         
        if (total >= 0 && total < 20) { complexity = "Very Weak"; } 
        else if (total >= 20 && total < 40) { complexity = "Weak"; } 
        else if (total >= 40 && total < 60) { complexity = "Medium"; } 
        else if (total >= 60 && total < 80) { complexity = "Strong"; } 
        else if (total >= 80 && total <= 100) { complexity = "Very Strong"; } 

        return complexity; 
    }
}
